package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class PraiseRes implements Serializable {
    private String urid;

    private String uno;

    private String rno;

    private Date urtime;

    private Date urdate;

    private static final long serialVersionUID = 1L;

    public String getUrid() {
        return urid;
    }

    public void setUrid(String urid) {
        this.urid = urid;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public String getRno() {
        return rno;
    }

    public void setRno(String rno) {
        this.rno = rno;
    }

    public Date getUrtime() {
        return urtime;
    }

    public void setUrtime(Date urtime) {
        this.urtime = urtime;
    }

    public Date getUrdate() {
        return urdate;
    }

    public void setUrdate(Date urdate) {
        this.urdate = urdate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PraiseRes other = (PraiseRes) that;
        return (this.getUrid() == null ? other.getUrid() == null : this.getUrid().equals(other.getUrid()))
            && (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
            && (this.getRno() == null ? other.getRno() == null : this.getRno().equals(other.getRno()))
            && (this.getUrtime() == null ? other.getUrtime() == null : this.getUrtime().equals(other.getUrtime()))
            && (this.getUrdate() == null ? other.getUrdate() == null : this.getUrdate().equals(other.getUrdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUrid() == null) ? 0 : getUrid().hashCode());
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getRno() == null) ? 0 : getRno().hashCode());
        result = prime * result + ((getUrtime() == null) ? 0 : getUrtime().hashCode());
        result = prime * result + ((getUrdate() == null) ? 0 : getUrdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", urid=").append(urid);
        sb.append(", uno=").append(uno);
        sb.append(", rno=").append(rno);
        sb.append(", urtime=").append(urtime);
        sb.append(", urdate=").append(urdate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}